# Data Structures

## `address` (object)
- `id`: `222` (number)
- `surname`: `teststore` (string)
- `givenName` (string)
- `addressLine1` (string)
- `addressLine2` (string)
- `country` (string)
- `state` (string)
- `city` (string)
- `district` (string)
- `postcode` (string)
- `mobile` (string)
- `createTime`: `12434345` (number)
- `userAddressStatusId`: `1` (number)
- `userId`: `123` (number)

## `userWithAddress` (object)
- `id`: `123` (number)
- `mobile`: `111` (number)
- `userStatusId`: `1` (number)
- `userImage`: `1` (number)
- `userRoleId`: `1` (number)
- `lastLoginTime`: `1248237548` (number)
- `defaultShopId`: `138` (number)
- `defaultAddressId`: `222` (number)
- `departmentId`: `1` (number)
- `addresses` (array[address])

## `userDetail` (object)

- `userId`: `123` (string)
- `surname`: `lmt` (string)
- `givenName`: `asd` (string)
- `genderId`: `1` (string)
- `email`: `123123@qq.com` (string)
- `birthday`: `1531191985000` (string)
- `createUser`: `123` (string)
- `createTime`: `asd` (string)
- `updateUser`: `asd` (string)
- `updateTime`: `asd` (string)
- `earningBalance`: `asd` (string)
- `depositBalance`: `asd` (string)

## user (object)

- `id`: `123` (number)
- `mobile`: `19910117282` (string)
- `username`: `testname` (string)
- `userStatusId`: `123` (string)
- `userImage`: `http://p7m9al9rr.bkt.clouddn.com/1.jpg` (string)
- `userRoleId`: `3` (string)
- `lastLoginTime`: `1248237548` (number)
- `defaultShopId`: `138` (number)
- `defaultAddressId`: `222` (number)
- `departmentId`: `1` (number)
- `userDetail` (userDetail)

## department
+ id: 123 (number)
+ department_name: IT (string)
<!-- end department-->


## pagingResult
+ result (array)
+ paging (pagingParameter, fixed-type)


## pagingParameter
+ total: 50 (number)       
+ offset: 20 (number) 
+ limit: 10 (number)    


## `paymentType` (object)

- `id`: `1` (number)
- `paymentTypeName`: `支付宝` (string)

## `salesOrderStatus` (object)

- `id`: `1` (number)
- `salesOrderStatusName`: `1` (string)

## `currency` (object)

- `id`: `1` (string)
- `currencyName`: `1` (string)
- `currencySign`: `1` (string)

## `shippingAddress` (object)

- `id`: `222` (number)
- `surname`: `teststore` (string)
- `givenName` (string)
- `addressLine1` (string)
- `addressLine2` (string)
- `country` (string)
- `state` (string)
- `city` (string)
- `district` (string)
- `postcode` (string)
- `mobile` (string)
- `createTime`: `12434345` (number)
- `userAddressStatusId`: `1` (number)
- `userId`: `123` (number)

## `product` (object)

- `id`: `123` (number)
- `productName`: `标准T恤` (string)
- `categoryId`: `12` (number)
- `productPrice`: `124.54` (number)
- `width`: `16.8` (number)

## `category` (object)

- `id`: `123` (number)
- `categoryName`: `T恤` (string)

## `design` (object)

- `id`: `88` (number)
- `title`: `什么什么设计` (string)
- `designTypeId`: `1` (number)

## `previewImage` (object)

- `id`: `68` (number)
- `previewSmallImage`: `/v1823/sfef4556ggh.jpg` (string)
- `imageStorageId`: `1` (number)
- `imageStorageSync`: `true` (boolean)

## `designItem` (object)

- `id`: `12345` (number)
- `productId`: `123` (number)
- `productColorId`: `12` (number)
- `price`: `124.54` (number)
- `product` (product)
- `category` (category)
- `design` (design)
- `previewImage` (previewImage)

## `salesOrderItem` (object)

- `id`: `7567567` (number)
- `salesOrderId`: `1` (number)
- `salesOrderItemTypeId`: `1` (number)
- `referenceId`: `123` (number)
- `description`: `什么什么设计 （标准T恤）` (string)
- `originalUnitPrice`: `12.23` (number)
- `unitPrice`: `12.23` (number)
- `quantity`: `1` (number)
- `designItemId`: `123` (number)
- `designItem` (designItem)

## `salesOrderDetail` (object)

- `salesOrderId`: `1` (number)
- `trackCode`: `1` (string)
- `userIp`: `1` (string)
- `salesOrderRemarks`: `1` (string)
- `customerRemarks`: `1` (string)
- `createTime`: `134365657` (number)
- `createUser`: `12` (number)

## `salesOrders` (object)
- `id`: `12345` (number)
- `customerId`: `123` (number)
- `paymentTypeId`: `1` (number)
- `paymentType` (paymentType)
- `salesOrderStatusId`: `1` (number)
- `salesOrderStatus` (salesOrderStatus)
- `paymentTotal`: `1` (string)
- `currencyId`: `1` (string)
- `currency` (currency)
- `exchangeRate`: `1` (string)
- `shippingAddressId`: `1` (string)
- `shippingAddress` (shippingAddress)
- `billingAddressId`: `1` (string)
- `updateUser`: `1` (number)
- `updateTime`: `1232485966` (number)
- `orderTime`: `1` (string)
- `salesOrderItems` (array[salesOrderItem])
- `salesOrderDetail` (salesOrderDetail)
